package com.erp.erp_dao.InspectCargo;

import com.erp.erp_entitys.InspectCargo.*;

import java.util.List;
import java.util.Map;

public interface IInspectCargoDAO {
    int deleteByPrimaryKey(Integer id);

    int insert(InspectCargoEntity record);

    int insertSelective(InspectCargoEntity record);

    InspectCargoEntity selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(InspectCargoEntity record);

    int updateByPrimaryKey(InspectCargoEntity record);

    InspectCargoProductEntity selectProduct(Integer id);

    InspectCargoFileEntity selectFile(Integer id);

    List<InspectCargoEntity> selectInspectCargoList(InspectCargoVo icVo);

    List<InspectCargoEntity> selectByIdList(List<String> list);

    int updateBoxStatus(List<InspectCargoEntity> list);

    int updateStageStatus(List<InspectCargoEntity> list);

    int updateBoxStatusBykey(InspectCargoVo icVo);

    InspectCargoEntity selectInfoById(Integer id);

    List<InspectCargoEntity> isExist(String oddNumber);

    String getLatestOddNumber();

    InspectCargoEntity selectUnusedInspectCargoListByShipmentNo(String loadPlanNo);

    InspectCargoEntity selectUsedInspectCargoListByShipmentNo(String loadPlanNo);

    int generateInspectCargoByShipmentNo(String loadPlanNo);

    List<InspectCargoAndProduct> selectInspectCargoAndProductList(InspectCargoVo vo);
}